"""
@author: wg
@file: homework11_22.py
@time: 2023/11/22 21:56
"""
# 把字符串中大写字母映射成1，小写字母映射成0，其他字符原样输出
# 例如 aBcD*E --> 0101*1

num = input("请输入一串字符:")
sum = ""
for i in num:
    if i.isupper():
        sum += "1"
    elif i.islower():
        sum += "0"
    else:
        sum += i
print(sum)